Page({
  data:{
    "tabView":[
      {
        "id": 10001,
        "title": "优酷视频",
        "tree":[
          {
            "id": 10001001,
            "title": "优酷综艺"
          },
          {
            "id": 10001002,
            "title": "优酷电影"
          },
          {
            "id": 10001003,
            "title": "优酷电视剧"
          }
        ]
      },
      {
        "id": 10002,
        "title": "腾讯视频",
        "tree": [
          {
            "id": 10002001,
            "title": "腾讯综艺"
          },
          {
            "id": 10002002,
            "title": "腾讯电影"
          },
          {
            "id": 10002003,
            "title": "腾讯电视剧"
          }
        ]
      },
      {
        "id": 10003,
        "title": "芒果视频",
        "tree": [
          {
            "id": 10003001,
            "title": "芒果综艺"
          },
          {
            "id": 10003002,
            "title": "芒果电影"
          },
          {
            "id": 10003003,
            "title": "芒果电视剧"
          }
        ]
      }
    ],
    "curNavIndex":0
  },
  tabNavChange:function(res){
    var that = this;
    console.log(res.target.dataset.index);
    console.log(res.target.dataset.id);
    let index = res.target.dataset.index;
    that.setData({
      curNavIndex: index
    })
  }
})